<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Cash extends Model
{
    use HasFactory;
    protected $fillable = ['user_id', 'cash_type', 'amount', 'before_amount', 'after_amount'];
    protected $dateFormat = 'U';

    public function agents() {
        return $this->belongsTo(Agent::class);
    }
}
